﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using SingleUserMall.Items;
using SingleUserMall.Items.VO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders.VO
{
    [AutoMapFrom(typeof(GroupOrder))]
    public class GroupOrderVO:EntityDto<long>
    {
        /// <summary>
        /// 开团时间
        /// </summary>
        public DateTime BeginTime { get; set; }
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 拼单数量
        /// </summary>
        public int TotalCount { get; set; }
        /// <summary>
        /// 参团数量
        /// </summary>
        public int PartinCount { get; set; }
        /// <summary>
        /// 团购状态（-1：撤销，0：初始化，1：组团中，2：成功）
        /// </summary>
        public GroupOrderStatus Status { get; set; }
        /// <summary>
        /// 团购人员，第一个是团主
        /// </summary>
        public IReadOnlyList<GroupOrderDetailMiniVO> GroupOrderDetails { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ItemName { get; set; }
        /// <summary>
        /// 商品规格
        /// </summary>
        public ItemSpecVO GroupOrderItemSpec { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Qty { get; set; }

    }
}
